package com.xq.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xq.dao.BizProductDao;
import com.xq.entity.BizProduct;
import com.xq.service.BizProductService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (BizProduct)表服务实现类
 *
 * @author makejava
 * @since 2020-08-11 19:51:15
 */
@Service("bizProductService")
public class BizProductServiceImpl extends ServiceImpl<BizProductDao, BizProduct> implements BizProductService {

    /**
     * 查询订单详细信息
     *
     * @param out_num
     * @return
     */
    @Override
    public List<BizProduct> findByPro(String out_num) {
        QueryWrapper<BizProduct> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("out_num",out_num);
        List<BizProduct> byPro = this.baseMapper.findByPro(queryWrapper);
        return byPro;
    }
}